package com.ymatou.iapi.sellerquery.testcase;

import java.util.ArrayList;
import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.query.seller.trading.api.parameter.Convertor;
import com.ymatou.query.seller.trading.api.parameter.ExistsResponse;
import com.ymatou.query.seller.trading.api.parameter.ExistsSellerExportedProductInfosBean;
import com.ymatou.query.seller.trading.api.parameter.ExportOrderInfo;
import com.ymatou.query.seller.trading.api.parameter.SellerExportOrderQueryModel;
import com.ymatou.query.seller.trading.api.parameter.TimeRange;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymt.utils.tag.P3;
import com.ymttest.common.enums.LogisticsTypeEnum;
import com.ymttest.common.enums.OrderStatusEnum;
import com.ymttest.utils.DataUtil;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.YMTDateUtil;

/**
 * @date 2016-06-28
 * @author songyefeng
 * @desc 是否存在卖家商品导出信息
 */
@TestSuite
public class Ts_ExistsSellerExportedProductInfos {

	private static ExistsSellerExportedProductInfosBean existsSellerExportedProductInfosBean;
	private static com.ymatou.query.seller.trading.api.service.ExistsSellerExportedProductInfosCall existsSellerExportedProductInfosCall;
//	private static com.ymatou.iapi.trading.sellerquery.service.ExistsSellerExportedProductInfosCall existsSellerExportedProductInfosCall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("是否存在卖家商品导出信息");
	}

	@Before
	public void caseUp() {
		existsSellerExportedProductInfosBean = new ExistsSellerExportedProductInfosBean();
		existsSellerExportedProductInfosCall = new com.ymatou.query.seller.trading.api.service.ExistsSellerExportedProductInfosCall();
//		existsSellerExportedProductInfosCall = new com.ymatou.iapi.trading.sellerquery.service.ExistsSellerExportedProductInfosCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(existsSellerExportedProductInfosCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	
	private void verify(){
		ExistsResponse expectResponse = new ExistsResponse();
		ConstructExpectedResponse(expectResponse);
		ExistsResponse actualResponse = existsSellerExportedProductInfosCall.getData();
		DataUtil.verifyEquals(expectResponse.isExists(), actualResponse.isExists(), "验证Exists");
	}
	

	private void ConstructExpectedResponse(ExistsResponse response) {
		Process(response);
	}

	private void Process(ExistsResponse response) {
		SellerExportOrderQueryModel model = Convertor
				.SellerExportOrderRequestArguments(existsSellerExportedProductInfosBean);
		ExistsSellerExportedProductInfosResponseProcessor(model, response);
	}
	
	private void ExistsSellerExportedProductInfosResponseProcessor(SellerExportOrderQueryModel model, ExistsResponse response){
		boolean exists = ExportOrderInfo.GetExportSellerProductInfoExistsSqlCommand(model);
		response.setExists(exists);
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_001() {
		Logger.start(true, "是否存在卖家商品导出信息");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange paidTime = new TimeRange();
			paidTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-100));
			paidTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-30));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_002() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试paidTime筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange paidTime = new TimeRange();
			paidTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-1));
			paidTime.setEnd(YMTDateUtil.getBeforeOrNextDay(1));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_003() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试订单状态为17的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> orderStatus = new ArrayList<Integer>();
			orderStatus.add(OrderStatusEnum.SellerAccept.getValue());
			existsSellerExportedProductInfosBean.setOrderStatus(orderStatus);
			TimeRange paidTime = new TimeRange();
			paidTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-1));
			paidTime.setEnd(YMTDateUtil.getBeforeOrNextDay(0));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_004() {
		Logger.start(true, "是否存在卖家商品导出信息, paidTime的end为空");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> orderStatus = new ArrayList<Integer>();
			orderStatus.add(OrderStatusEnum.OrderPostPay.getValue());
			existsSellerExportedProductInfosBean.setOrderStatus(orderStatus);
			TimeRange paidTime = new TimeRange();
			paidTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-2));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_005() {
		Logger.start(true, "是否存在卖家商品导出信息, paidTime的start为空");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> orderStatus = new ArrayList<Integer>();
			orderStatus.add(OrderStatusEnum.OrderPostPay.getValue());
			existsSellerExportedProductInfosBean.setOrderStatus(orderStatus);
			TimeRange paidTime = new TimeRange();
			paidTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}

	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_006() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试订单状态为101的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> orderStatus = new ArrayList<Integer>();
			orderStatus.add(OrderStatusEnum.OrderPostPay.getValue());
			existsSellerExportedProductInfosBean.setOrderStatus(orderStatus);
			TimeRange paidTime = new TimeRange();
			paidTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-5));
			paidTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean.setPaidTime(paidTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_007() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试BuyerNickName的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			existsSellerExportedProductInfosBean.setBuyerNickName("est007");
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_008() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试CreatedTime的筛选,begin+end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange createdTime = new TimeRange();
			createdTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-7));
			createdTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-2));
			existsSellerExportedProductInfosBean.setCreatedTime(createdTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_009() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试CreatedTime的筛选,只有begin");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange createdTime = new TimeRange();
			createdTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-5));
			existsSellerExportedProductInfosBean.setCreatedTime(createdTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_010() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试CreatedTime的筛选,只有end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange createdTime = new TimeRange();
			createdTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-2));
			existsSellerExportedProductInfosBean.setCreatedTime(createdTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_011() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试DeliveredTime的筛选,begin+end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange deliveredTime = new TimeRange();
			deliveredTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-3));
			deliveredTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean
					.setDeliveredTime(deliveredTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_012() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试DeliveredTime的筛选,只有begin");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange deliveredTime = new TimeRange();
			deliveredTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-10));
			existsSellerExportedProductInfosBean
					.setDeliveredTime(deliveredTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_013() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试DeliveredTime的筛选,只有end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange deliveredTime = new TimeRange();
			deliveredTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean
					.setDeliveredTime(deliveredTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_014() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试LogisticsTypes的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> logisticsTypes = new ArrayList<Integer>();
			logisticsTypes
					.add(LogisticsTypeEnum.XloboBondedDelivery.getValue());
			existsSellerExportedProductInfosBean
					.setLogisticsTypes(logisticsTypes);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_015() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试OrderId的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			existsSellerExportedProductInfosBean.setOrderId(105836235);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_016() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试OrderId的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> orderStatus = new ArrayList<Integer>();
			orderStatus.add(OrderStatusEnum.AccountPaid.getValue());
			orderStatus.add(OrderStatusEnum.OrderEstablish.getValue());
			existsSellerExportedProductInfosBean.setOrderStatus(orderStatus);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_017() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试PayTypes的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			List<Integer> payTypes = new ArrayList<Integer>();
			payTypes.add(0);
			payTypes.add(2);
			existsSellerExportedProductInfosBean.setPayTypes(payTypes);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_018() {
		Logger.start(true,"是否存在卖家商品导出信息, 测试PostpayAppliedTime的筛选(ymt_orders.dApplyPostPayTime),begin+end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange postpayAppliedTime = new TimeRange();
			postpayAppliedTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-3));
			postpayAppliedTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean
					.setPostpayAppliedTime(postpayAppliedTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_019() {
		Logger.start(true,"是否存在卖家商品导出信息, 测试PostpayAppliedTime的筛选(ymt_orders.dApplyPostPayTime),只有begin");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange postpayAppliedTime = new TimeRange();
			postpayAppliedTime.setBegin(YMTDateUtil.getBeforeOrNextDay(-3));
			existsSellerExportedProductInfosBean
					.setPostpayAppliedTime(postpayAppliedTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_020() {
		Logger.start(true,"是否存在卖家商品导出信息, 测试PostpayAppliedTime的筛选(ymt_orders.dApplyPostPayTime),只有end");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			TimeRange postpayAppliedTime = new TimeRange();
			postpayAppliedTime.setEnd(YMTDateUtil.getBeforeOrNextDay(-1));
			existsSellerExportedProductInfosBean
					.setPostpayAppliedTime(postpayAppliedTime);
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_021() {
		Logger.start(true, "是否存在卖家商品导出信息, 测试ProductName的筛选");
		try {
			int SellerId = Integer.valueOf(EnvSetup.getData("SellerId"));
			existsSellerExportedProductInfosBean.setSellerId(SellerId);
			existsSellerExportedProductInfosBean.setProductName("接口自动化测试Test");
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P3.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_022() {
		Logger.start(true, "获取是否存在卖家商品导出信息失败, SellerId为null");
		try {
			existsSellerExportedProductInfosBean.setSellerId(null);
			existsSellerExportedProductInfosBean.setProductName("接口自动化测试Test");
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("400",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P3.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_023() {
		Logger.start(true, "获取是否存在卖家商品导出信息失败, SellerId为0");
		try {
			existsSellerExportedProductInfosBean.setSellerId(0);
			existsSellerExportedProductInfosBean.setProductName("接口自动化测试Test");
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("400",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P3.class)
	@TestCase
	public void Tc_ExistsSellerExportedProductInfos_024() {
		Logger.start(true, "获取是否存在卖家商品导出信息成功, SellerId不存在");
		try {
			existsSellerExportedProductInfosBean.setSellerId(404);
			existsSellerExportedProductInfosBean.setProductName("接口自动化测试Test");
			existsSellerExportedProductInfosCall
					.setData(existsSellerExportedProductInfosBean);
			existsSellerExportedProductInfosCall.callService();
			Logger.verifyEquals("200",
					existsSellerExportedProductInfosCall.getCode(), "验证code");
			verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}